package com.taobao.api.response;

import java.util.List;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
import com.taobao.api.TaobaoObject;

import com.taobao.api.TaobaoResponse;

/**
 * TOP API: tmall.nr.inventory.update response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class TmallNrInventoryUpdateResponse extends TaobaoResponse {

	private static final long serialVersionUID = 5337723196233925155L;

	/** 
	 * 返回结果
	 */
	@ApiField("result")
	private NrResult result;


	public void setResult(NrResult result) {
		this.result = result;
	}
	public NrResult getResult( ) {
		return this.result;
	}
	
	/**
 * 返回成功的库存记录数
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrInventoryCheckDetailDto extends TaobaoObject {

	private static final long serialVersionUID = 7884485454113176634L;

	/**
		 * 数量
		 */
		@ApiField("quantity")
		private Long quantity;
		/**
		 * 商家商品编码
		 */
		@ApiField("sc_item_code")
		private String scItemCode;
		/**
		 * 后端商品的Id号
		 */
		@ApiField("sc_item_id")
		private Long scItemId;
		/**
		 * 幂等值
		 */
		@ApiField("sub_order_id")
		private String subOrderId;
	

	public Long getQuantity() {
			return this.quantity;
		}
		public void setQuantity(Long quantity) {
			this.quantity = quantity;
		}
		public String getScItemCode() {
			return this.scItemCode;
		}
		public void setScItemCode(String scItemCode) {
			this.scItemCode = scItemCode;
		}
		public Long getScItemId() {
			return this.scItemId;
		}
		public void setScItemId(Long scItemId) {
			this.scItemId = scItemId;
		}
		public String getSubOrderId() {
			return this.subOrderId;
		}
		public void setSubOrderId(String subOrderId) {
			this.subOrderId = subOrderId;
		}

}

	/**
 * 返回数据
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class InventoryUpdateRespDto extends TaobaoObject {

	private static final long serialVersionUID = 4319332538527258851L;

	/**
		 * 失败的库存更新记录
		 */
		@ApiListField("fail_inventorys")
		@ApiField("nr_inventory_check_detail_dto")
		private List<NrInventoryCheckDetailDto> failInventorys;
		/**
		 * 返回成功的库存记录数
		 */
		@ApiListField("success_inventorys")
		@ApiField("nr_inventory_check_detail_dto")
		private List<NrInventoryCheckDetailDto> successInventorys;
	

	public List<NrInventoryCheckDetailDto> getFailInventorys() {
			return this.failInventorys;
		}
		public void setFailInventorys(List<NrInventoryCheckDetailDto> failInventorys) {
			this.failInventorys = failInventorys;
		}
		public List<NrInventoryCheckDetailDto> getSuccessInventorys() {
			return this.successInventorys;
		}
		public void setSuccessInventorys(List<NrInventoryCheckDetailDto> successInventorys) {
			this.successInventorys = successInventorys;
		}

}

	/**
 * 返回结果
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrResult extends TaobaoObject {

	private static final long serialVersionUID = 1269524463723345883L;

	/**
		 * 更新错误code
		 */
		@ApiField("error_code")
		private String errorCode;
		/**
		 * 更新错误信息提示
		 */
		@ApiField("error_message")
		private String errorMessage;
		/**
		 * isSuccess
		 */
		@ApiField("is_success")
		private Boolean isSuccess;
		/**
		 * 返回数据
		 */
		@ApiField("result_data")
		private InventoryUpdateRespDto resultData;
	

	public String getErrorCode() {
			return this.errorCode;
		}
		public void setErrorCode(String errorCode) {
			this.errorCode = errorCode;
		}
		public String getErrorMessage() {
			return this.errorMessage;
		}
		public void setErrorMessage(String errorMessage) {
			this.errorMessage = errorMessage;
		}
		public Boolean getIsSuccess() {
			return this.isSuccess;
		}
		public void setIsSuccess(Boolean isSuccess) {
			this.isSuccess = isSuccess;
		}
		public InventoryUpdateRespDto getResultData() {
			return this.resultData;
		}
		public void setResultData(InventoryUpdateRespDto resultData) {
			this.resultData = resultData;
		}

}



}
